/**
 * @type {String}
 *
 * @properties={typeid:35,uuid:"DD842624-A06F-41A6-AFAB-57E598A9193F"}
 */
var gStyle = 'infocom_fwk';

/**
 * @type {Number}
 *
 * @properties={typeid:35,uuid:"4F02A86D-531D-4A79-B52F-CB8142EB348C",variableType:4}
 */
var gVisible = 1;

/**
 * @type {Number}
 *
 * @properties={typeid:35,uuid:"C5AD37A5-9DB6-4D6C-8876-74923FFB2B0C",variableType:4}
 */
var gFormSelec = null;

/**
 *
 * @properties={typeid:24,uuid:"0FF14032-30A1-4B28-9553-BA4272ED7E1D"}
 * @AllowToRunInFind
 */
function mostrarForm(frm) {
	/**@type {JSFoundSet<db:/fwk_navigation_infocom/pantallas>} */
	var fs = databaseManager.getFoundSet('fwk_navigation_infocom','pantallas')
		
	fs.find()
	
	fs.id_solucion 	= globals.gIdSolucion
	fs.nombre 		= frm
	
	fs.newRecord()
	
	fs.id_solucion 	= 0
	fs.nombre 		= frm
		
	var cant = fs.search()
	if (cant == 0)
		globals.DIALOGS.showWarningDialog('Aviso','El form "'+frm+'" no existe','Ok')
	else
	{
		globals.gIdFormActual = fs.id_form
		forms.tree.clicForm(fs.id_form);
	}		
}

/**
 * @properties={typeid:24,uuid:"EB5220A4-C03C-4283-8BDF-67EEF8188DE3"}
 */
function volver()
{
	if (globals.gHistoriaIndice > 1)
	{	
		globals.gHistoriaIndice--
		globals.gIdFormActual = globals.ar[globals.gHistoriaIndice]
		forms.tree.clicForm(globals.gIdFormActual,'1');
	}
}
